package com.yztc.orangeentertainment.http;

import com.yztc.orangeentertainment.bean.articlecommentall.ArticleCommentAllBean;
import com.yztc.orangeentertainment.bean.channalarticle.ChannalArticle;
import com.yztc.orangeentertainment.bean.channalarticlecomment.ChannalArticleComment;
import com.yztc.orangeentertainment.bean.channalbean.ChannalTitle;
import com.yztc.orangeentertainment.bean.channalbean.ChannelTuijian;
import com.yztc.orangeentertainment.config.ChannalUrlConfig;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;


/**
 * Created by My on 2016/10/4.
 */
public interface ChannalRetrofitService {
    @GET(ChannalUrlConfig.DefaultVaule.ALL_VALUE)
    Call<ChannalTitle> getChannalTitles();
    @GET("{type}?")
    Call<ChannelTuijian> GetChannalContentList(@Path("type") String type, @QueryMap Map<String,
            String> map);
    @GET("{type}?")
    Call<ChannalArticle> getChannalArticleList(@Path("type") String type, @QueryMap
    Map<String, String> map);
    @GET("{type}?")
    Call<ChannalArticleComment> getChannalArticleCommentList(@Path("type") String type, @QueryMap
    Map<String, String> map);
    @GET("{type}?")
    Call<ArticleCommentAllBean> getArticleCommentAll(@Path("type") String type,@QueryMap Map<String,String>
            map);

}
